Skip to content

Run the Hasura auth hook in POST mode - #789

Merged
lukepolo merged 3 commits into
mainfrom
up/hook-post-20261117
Nov 18, 2026
Merged

lukepolo merged 3 commits into
mainfrom
up/hook-post-20261117

Conversation

@Flegma

@Flegma Flegma commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Runs the Hasura auth hook in POST mode so the api sees the client's Origin and Content-Type.

  • HASURA_GRAPHQL_AUTH_HOOK_MODE=POST, HASURA_GRAPHQL_AUTH_HOOK_SEND_REQUEST_BODY=false
  • Needs the api POST /hasura hook from 5stackgg/api#1393
  • An api pod-template annotation rolls the api in the same apply, so panels updated with update.sh don't keep an api from before the hook

POST mode hands the api the client's Origin and Content-Type, so it can refuse a session cookie sent cross-origin to /v1/graphql. Needs the api POST /hasura hook (5stackgg/api#1393).
@Flegma
Flegma marked this pull request as ready for review November 17, 2026 17:02
@lukepolo
lukepolo merged commit 1142970 into main Nov 18, 2026
2 checks passed
@lukepolo
lukepolo deleted the up/hook-post-20261117 branch November 18, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants